package com.earthchen.demo.exception;

import com.earthchen.core.exception.BaseException;
import com.earthchen.demo.enums.ExceptionEnum;

/**
 * 认证异常
 *
 * @author earthchen
 * @date 2018/9/6
 **/
public class AuthException extends BaseException {

    public AuthException(ExceptionEnum exceptionEnum) {
        super(exceptionEnum.getCode(), exceptionEnum.getMessage());
    }

    public AuthException(Throwable ex) {
        super(ex);
    }

    public AuthException(Integer code, String message) {
        super(code, message);
    }

}
